ghc.git
6 days agoManual merge of version 9.6.6-4+rpi1 and 9.10.3-3 to produce 9.10.3-3+rpi1 forky-staging archive/raspbian/9.10.3-3+rpi1 raspbian/9.10.3-3+rpi1
Peter Michael Green [Thu, 5 Mar 2026 18:43:11 +0000 (18:43 +0000)]
Manual merge of version 9.6.6-4+rpi1 and 9.10.3-3 to produce 9.10.3-3+rpi1

6 weeks agoMerge ghc (9.10.3-3) import into refs/heads/workingbranch
Ilias Tsitsimpis [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Merge ghc (9.10.3-3) import into refs/heads/workingbranch

6 weeks agoMatch arm-unknown-linux to armv7-unknown-linux
Ilias Tsitsimpis [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Match arm-unknown-linux to armv7-unknown-linux

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/26734
Bug-Debian: https://bugs.debian.org/1124748
Forwarded: <URL|no|not-needed, useless if you have a Bug field, optional>

Gbp-Pq: Name armhf-target-platform

6 weeks agoghc-prim-modern-atomics
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
ghc-prim-modern-atomics

===================================================================

Gbp-Pq: Name ghc-prim-modern-atomics.patch

6 weeks agohppa-sparc64-support
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
hppa-sparc64-support

===================================================================

Gbp-Pq: Name hppa-sparc64-support.patch

6 weeks ago[PATCH] GNU/Hurd: Add getExecutablePath support
Samuel Thibault [Sun, 15 Sep 2024 13:57:52 +0000 (15:57 +0200)]
[PATCH] GNU/Hurd: Add getExecutablePath support

GNU/Hurd exposes it as /proc/self/exe just like on Linux.

Gbp-Pq: Name gnu-hurd

6 weeks agohadrian-unreg-template-haskell
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
hadrian-unreg-template-haskell

commit 702f7964373d9ffb1d550ee714bd723d8bb0c1a3
Author: Matthew Pickering <matthewtpickering@gmail.com>
Date:   Mon Apr 29 12:13:00 2024 +0100

    Make interface files and object files depend on inplace .conf file

    A potential fix for #24737

Gbp-Pq: Name hadrian-unreg-template-haskell

6 weeks agohadrian-bootstrap-plan
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
hadrian-bootstrap-plan

===================================================================

Gbp-Pq: Name hadrian-bootstrap-plan

6 weeks ago[PATCH] rts: Fix invocation of __ieee_set_fp_control() on alpha-linux
John Paul Adrian Glaubitz [Thu, 3 Oct 2024 12:30:23 +0000 (14:30 +0200)]
[PATCH] rts: Fix invocation of __ieee_set_fp_control() on alpha-linux

Fixes the following error when building GHC on alpha-linux:

rts/posix/Signals.c: In function ‘initDefaultHandlers’:

rts/posix/Signals.c:709:5: error:
     error: implicit declaration of function ‘ieee_set_fp_control’ [-Wimplicit-function-declaration]
      709 |     ieee_set_fp_control(0);
          |     ^~~~~~~~~~~~~~~~~~~
    |
709 |     ieee_set_fp_control(0);
    |

Gbp-Pq: Name alpha-fix-ieee_set_fp_control-invocation.patch

6 weeks ago[PATCH] Bump max LLVM version to 19
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
[PATCH] Bump max LLVM version to 19

Gbp-Pq: Name llvm-newer-version

6 weeks ago[PATCH] Use capi for syscalls that break under musl's handling of 64-bit time_t
Marios Titas [Sun, 2 Oct 2022 20:12:43 +0000 (23:12 +0300)]
[PATCH] Use capi for syscalls that break under musl's handling of 64-bit time_t

Gbp-Pq: Name time_t-time

6 weeks ago[PATCH] PPC NCG: Generate clear right insn at arch width
Peter Trommler [Tue, 7 Nov 2023 20:47:24 +0000 (21:47 +0100)]
[PATCH] PPC NCG: Generate clear right insn at arch width

The clear right immediate (clrrxi) is only available in word and
doubleword width. Generate clrrxi instructions at architecture
width for all MachOp widths.

Fixes #24145

Gbp-Pq: Name ppc64el-fix-clrri

6 weeks agoEnable GHCi on all platforms in Debian
Ilias Tsitsimpis [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Enable GHCi on all platforms in Debian

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/24098

Gbp-Pq: Name hadrian-enable-interpreter

6 weeks agohadrian-disable-threaded
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
hadrian-disable-threaded

===================================================================

Gbp-Pq: Name hadrian-disable-threaded

6 weeks agoAllow setting path for LLC/OPT during configuration
Ilias Tsitsimpis [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Allow setting path for LLC/OPT during configuration

Patch configure.ac to allow us to modify the path for LLC/OPT during
configuration.

Gbp-Pq: Name allow-setting-llvm-program

6 weeks agoUse realpath instead of custom script
Ilias Tsitsimpis [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Use realpath instead of custom script

Use realpath instead of the custom script, which is broken. As an example,

  $ ./mk/relpath.sh /usr/lib/ghc/lib /usr/lib/ghc-doc
  ..-doc
  $ realpath --relative-to=/usr/lib/ghc/lib /usr/lib/ghc-doc
  ../../ghc-doc

Gbp-Pq: Name hadrian-relpath

6 weeks agoPass 'mathjax' to Haddock
Ilias Tsitsimpis [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Pass 'mathjax' to Haddock

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/23625

Hadrian currently doesn't allow us to modify Haddock options, so
patch Hadrian to manually pass the 'mathjax' option.

Gbp-Pq: Name hadrian-haddock-opts

6 weeks agouse-unbundled-sphinx-rtd-theme
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
use-unbundled-sphinx-rtd-theme

===================================================================

Gbp-Pq: Name use-unbundled-sphinx-rtd-theme

6 weeks agoRemove hard-coded googleapis font URL
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Remove hard-coded googleapis font URL

Bug: https://github.com/haskell/haddock/issues/1211
Bug-Debian: https://bugs.debian.org/963690

Gbp-Pq: Name haddock-remove-googleapis-fonts

6 weeks agolocal-mathjax
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
local-mathjax

===================================================================

Gbp-Pq: Name local-mathjax

6 weeks agoAdd kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4
Svante Signell [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Add kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4

Bug-Debian: https://bugs.debian.org/913140

Gbp-Pq: Name kfreebsd-aclocal.m4

6 weeks agoUse native x86_64 instructions on x32
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Use native x86_64 instructions on x32

This patch enables a few native 64-bit integer instructions
on x32 which are available on this architecture despite using
32-bit pointers. These instructions are present on x86_64 but
not on x86 and ghc checks the size of (void *) to determine
that. This method fails on x32 since despite using 32-bit
pointers and hence sizeof(void *) == 4, it still uses the
full x86_64 instruction set and software-emulated variants
of the aforementioned 64-bit integer instructions are
therefore not present in the toolchain which will make ghc
fail to build on x32.
See: https://ghc.haskell.org/trac/ghc/ticket/11571

Gbp-Pq: Name x32-use-native-x86_64-insn.patch

6 weeks agobuildpath-abi-stability
Debian Haskell Group [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
buildpath-abi-stability

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Gbp-Pq: Name buildpath-abi-stability.patch

6 weeks agoDo not emit a warning if the .haddock file is missing
Joachim Breitner [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Do not emit a warning if the .haddock file is missing

As it is quite common on Debian installations to install the -dev package
without the -doc package.

Gbp-Pq: Name no-missing-haddock-file-warning

6 weeks agoUse VFPv3-D16 FPU for ARM builds
Jani Monoses [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Use VFPv3-D16 FPU for ARM builds

Upstream-Bug: https://ghc.haskell.org/trac/ghc/ticket/5914

Jani writes: The D16 part was Debian/Ubuntu specific, IIRC we define hardfloat
in that particular variant (16 double registers) or we had a different naming
for some reason.

Gbp-Pq: Name ARM-VFPv3D16

6 weeks agoghc (9.10.3-3) unstable; urgency=medium
Ilias Tsitsimpis [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
ghc (9.10.3-3) unstable; urgency=medium

  * Do not pass --hash-unit-ids to hadrian (Closes: #1126311)

[dgit import unpatched ghc 9.10.3-3]

6 weeks agoImport ghc_9.10.3-3.debian.tar.xz
Ilias Tsitsimpis [Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)]
Import ghc_9.10.3-3.debian.tar.xz

[dgit import tarball ghc 9.10.3-3 ghc_9.10.3-3.debian.tar.xz]

5 months agoImport ghc_9.10.3.orig.tar.xz
Ilias Tsitsimpis [Sat, 27 Sep 2025 12:29:38 +0000 (15:29 +0300)]
Import ghc_9.10.3.orig.tar.xz

[dgit import orig ghc_9.10.3.orig.tar.xz]

12 months agoMerge version 9.6.6-2+rpi1 and 9.6.6-4 to produce 9.6.6-4+rpi1 trixie-staging archive/raspbian/9.6.6-4+rpi1 raspbian/9.6.6-4+rpi1
Raspbian automatic forward porter [Sat, 8 Mar 2025 09:38:07 +0000 (09:38 +0000)]
Merge version 9.6.6-2+rpi1 and 9.6.6-4 to produce 9.6.6-4+rpi1

12 months agoMerge ghc (9.6.6-4) import into refs/heads/workingbranch
Gianfranco Costamagna [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Merge ghc (9.6.6-4) import into refs/heads/workingbranch

12 months ago[PATCH] llvmGen: Pass mcmodel medium option to LLVM backend on LoongArch
Xin Wang [Fri, 13 Dec 2024 02:45:20 +0000 (10:45 +0800)]
[PATCH] llvmGen: Pass mcmodel medium option to LLVM backend on LoongArch

Gbp-Pq: Name 0004-llvmGen-Pass-mcmodel-medium-option-to-LLVM-backend-on-LoongArch.patch

12 months ago[PATCH] llvmGen: Introduce infrastructure for module flag metadata
Ben Gamari [Tue, 22 Aug 2023 17:26:46 +0000 (13:26 -0400)]
[PATCH] llvmGen: Introduce infrastructure for module flag metadata

Gbp-Pq: Name 0003-llvmGen-Introduce-infrastructure-for-module-flag-metadata.patch

12 months ago[PATCH] llvmGen: Allow LlvmLits in MetaExprs
Wang Xin [Fri, 13 Dec 2024 03:47:29 +0000 (03:47 +0000)]
[PATCH] llvmGen: Allow LlvmLits in MetaExprs

Gbp-Pq: Name 0002-llvmGen-Allow-LlvmLits-in-MetaExprs.patch

12 months ago[PATCH] llvmGen: Add export list to GHC.Llvm.MetaData
Ben Gamari [Tue, 22 Aug 2023 16:23:26 +0000 (12:23 -0400)]
[PATCH] llvmGen: Add export list to GHC.Llvm.MetaData

Gbp-Pq: Name 0001-llvmGen-Add-export-list-to-GHC.Llvm.MetaData.patch

12 months ago[PATCH] rts: Fix invocation of __ieee_set_fp_control() on alpha-linux
John Paul Adrian Glaubitz [Thu, 3 Oct 2024 12:30:23 +0000 (14:30 +0200)]
[PATCH] rts: Fix invocation of __ieee_set_fp_control() on alpha-linux

Fixes the following error when building GHC on alpha-linux:

rts/posix/Signals.c: In function ‘initDefaultHandlers’:

rts/posix/Signals.c:709:5: error:
     error: implicit declaration of function ‘ieee_set_fp_control’ [-Wimplicit-function-declaration]
      709 |     ieee_set_fp_control(0);
          |     ^~~~~~~~~~~~~~~~~~~
    |
709 |     ieee_set_fp_control(0);
    |

Gbp-Pq: Name alpha-fix-ieee_set_fp_control-invocation.patch

12 months ago[PATCH] Cmm: don't perform unsound optimizations on 32-bit compiler hosts
Sylvain Henry [Thu, 1 Aug 2024 13:59:14 +0000 (15:59 +0200)]
[PATCH] Cmm: don't perform unsound optimizations on 32-bit compiler hosts

beef61351b240967b49169d27a9a19565cf3c4af enabled the use of
  MO_Add/MO_Sub for 64-bit operations in the C and LLVM backends
6755d833af8c21bbad6585144b10e20ac4a0a1ab did the same for the x86 NCG
  backend

However we store some literal values as `Int` in the compiler. As a
result, some Cmm optimizations transformed target 64-bit literals into
compiler `Int`. If the compiler is 32-bit, this leads to computing with
wrong literals (see #24893 and #24700).

This patch disables these Cmm optimizations for 32-bit compilers. This
is unsatisfying (optimizations shouldn't be compiler-word-size
dependent) but it fixes the bug and it makes the patch easy to backport.
A proper fix would be much more invasive but it shall be implemented in
the future.

Co-authored-by: amesgen <amesgen@amesgen.de>
Gbp-Pq: Name pr-13096

12 months agoAdd more hadrian bootstrap plans
Ilias Tsitsimpis [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Add more hadrian bootstrap plans

Hadrian only contains bootstrap plans for previous GHC versions. Add plans for
the current version as well, since we may want to bootstrap hadrian with a
cross-compiled GHC that is of the same version as the GHC we are building here.

Gbp-Pq: Name hadrian-plans

12 months ago[PATCH] Bump max LLVM version to 19 (not inclusive)
Olivier Benz [Sat, 25 May 2024 10:29:13 +0000 (12:29 +0200)]
[PATCH] Bump max LLVM version to 19 (not inclusive)

Gbp-Pq: Name llvm-newer-version

12 months agollvm-new-pass-manager
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
llvm-new-pass-manager

commit 77db84aba1ba00f6d146e9107b24c6203798e796
Author: Ben Gamari <bgamari.foss@gmail.com>
Date:   Wed Jan 31 08:58:58 2024 -0500

    llvmGen: Adapt to allow use of new pass manager.

    We now must use `-passes` in place of `-O<n>` due to #21936.

    Closes #21936.

Gbp-Pq: Name llvm-new-pass-manager

12 months ago[PATCH] Use capi for syscalls that break under musl's handling of 64-bit time_t
Marios Titas [Sun, 2 Oct 2022 20:12:43 +0000 (23:12 +0300)]
[PATCH] Use capi for syscalls that break under musl's handling of 64-bit time_t

Gbp-Pq: Name time_t-time

12 months agohurd-hadrian-supportrpaths
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
hurd-hadrian-supportrpaths

Can be dropped with 9.8.1
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-hadrian-supportrpaths

12 months agohurd-hadrian-osstring
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
hurd-hadrian-osstring

https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11624
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-hadrian-osstring

12 months agohurd-getExecutablePath
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
hurd-getExecutablePath

Also applies in 9.6.x
Can be dropped with 9.8.1
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-getExecutablePath

12 months agohurd-cabal-supportrpaths
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
hurd-cabal-supportrpaths

https://github.com/haskell/cabal/pull/9441
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-cabal-supportrpaths

12 months agohurd-cabal-osstring
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
hurd-cabal-osstring

https://github.com/haskell/cabal/pull/9434
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-cabal-osstring

12 months agosparc64-cabal-support
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
sparc64-cabal-support

Debian-Bug: https://bugs.debian.org/1056033

Gbp-Pq: Name sparc64-cabal-support

12 months ago[PATCH] PPC NCG: Generate clear right insn at arch width
Peter Trommler [Tue, 7 Nov 2023 20:47:24 +0000 (21:47 +0100)]
[PATCH] PPC NCG: Generate clear right insn at arch width

The clear right immediate (clrrxi) is only available in word and
doubleword width. Generate clrrxi instructions at architecture
width for all MachOp widths.

Fixes #24145

Gbp-Pq: Name ppc64el-fix-clrri

12 months agouse-modern-atomics
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
use-modern-atomics

commit f8fa1d08d7cbfef508bab355bda80f495e928f98
Author: Ben Gamari <bgamari.foss@gmail.com>
Date:   Mon Apr 17 21:04:47 2023 +0000

    ghc-prim: Use C11 atomics

    Previously `ghc-prim`'s atomic wrappers used the legacy `__sync_*`
    family of C builtins. Here we refactor these to rather use the
    appropriate C11 atomic equivalents, allowing us to be more explicit
    about the expected ordering semantics.

Gbp-Pq: Name use-modern-atomics

12 months agoEnable GHCi on all platforms in Debian
Ilias Tsitsimpis [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Enable GHCi on all platforms in Debian

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/24098

Gbp-Pq: Name hadrian-enable-interpreter

12 months agohadrian-disable-threaded
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
hadrian-disable-threaded

===================================================================

Gbp-Pq: Name hadrian-disable-threaded

12 months agosparc-support
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
sparc-support

===================================================================

Gbp-Pq: Name sparc-support

12 months agoAllow setting path for LLC/OPT during configuration
Ilias Tsitsimpis [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Allow setting path for LLC/OPT during configuration

Patch configure.ac to allow us to modify the path for LLC/OPT during
configuration.

Gbp-Pq: Name allow-setting-llvm-program

12 months agoFix installation patch for iserv/unlit
Ilias Tsitsimpis [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Fix installation patch for iserv/unlit

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/22557
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/22697

Gbp-Pq: Name hadrian-iserv

12 months agoUse realpath instead of custom script
Ilias Tsitsimpis [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Use realpath instead of custom script

Use realpath instead of the custom script, which is broken. As an example,

  $ ./mk/relpath.sh /usr/lib/ghc/lib /usr/lib/ghc-doc
  ..-doc
  $ realpath --relative-to=/usr/lib/ghc/lib /usr/lib/ghc-doc
  ../../ghc-doc

Gbp-Pq: Name hadrian-relpath

12 months agoPass 'mathjax' to Haddock
Ilias Tsitsimpis [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Pass 'mathjax' to Haddock

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/23625

Hadrian currently doesn't allow us to modify Haddock options, so
patch Hadrian to manually pass the 'mathjax' option.

Gbp-Pq: Name hadrian-haddock-opts

12 months agouse-unbundled-sphinx-rtd-theme
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
use-unbundled-sphinx-rtd-theme

===================================================================

Gbp-Pq: Name use-unbundled-sphinx-rtd-theme

12 months agoFix LLVM error on armel
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Fix LLVM error on armel

GHC 8.10 fails to build on armel with the following error:
   LLVM ERROR: unable to allocate function argument #8
   PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
   Stack dump:
   0.  Program arguments: llc-12 -O2 -enable-tbaa -relocation-model=pic -mcpu=arm7tdmi -mattr=+soft-float,-vfp2,-vfp2sp,-vfp3,-vfp3d16,-vfp3d16sp,-vfp3sp,-fp16,-vfp4,-vfp4d16,-vfp4d16sp,-vfp4sp,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fullfp16,-fp64,-d32,-neon,-crypto,-dotprod,-fp16fml,-bf16,-mve,-mve.fp,-fpregs,+strict-align /tmp/ghc5537_0/ghc_6.bc -o /tmp/ghc5537_0/ghc_7.lm_s
   1.  Running pass 'Function Pass Manager' on module '/tmp/ghc20177_0/ghc_6.bc'.
   2.  Running pass 'ARM Instruction Selection' on function '@"stg_gc_f1$def"'
   `llc-12' failed in phase `LLVM Compiler'. (Exit code: -6)
   make[3]: *** [rts/ghc.mk:325: rts/dist/build/HeapStackCheck.o] Error 1

 Surprisingly, reverting commit 4540bbe2811e860f35de6e67ab2f0040592fd3a5 fixes
 thie error.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/20285

Gbp-Pq: Name fix-llvm-armel

12 months agoRemove hard-coded googleapis font URL
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Remove hard-coded googleapis font URL

Bug: https://github.com/haskell/haddock/issues/1211
Bug-Debian: https://bugs.debian.org/963690

Gbp-Pq: Name haddock-remove-googleapis-fonts

12 months agolocal-mathjax
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
local-mathjax

===================================================================

Gbp-Pq: Name local-mathjax

12 months agoAdd kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4
Svante Signell [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Add kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4

Bug-Debian: https://bugs.debian.org/913140

Gbp-Pq: Name kfreebsd-aclocal.m4

12 months agoUse native x86_64 instructions on x32
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Use native x86_64 instructions on x32

This patch enables a few native 64-bit integer instructions
on x32 which are available on this architecture despite using
32-bit pointers. These instructions are present on x86_64 but
not on x86 and ghc checks the size of (void *) to determine
that. This method fails on x32 since despite using 32-bit
pointers and hence sizeof(void *) == 4, it still uses the
full x86_64 instruction set and software-emulated variants
of the aforementioned 64-bit integer instructions are
therefore not present in the toolchain which will make ghc
fail to build on x32.
See: https://ghc.haskell.org/trac/ghc/ticket/11571

Gbp-Pq: Name x32-use-native-x86_64-insn.patch

12 months agobuildpath-abi-stability
Debian Haskell Group [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
buildpath-abi-stability

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Gbp-Pq: Name buildpath-abi-stability.patch

12 months agoDo not emit a warning if the .haddock file is missing
Joachim Breitner [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Do not emit a warning if the .haddock file is missing

As it is quite common on Debian installations to install the -dev package
without the -doc package.

Gbp-Pq: Name no-missing-haddock-file-warning

12 months agoUse VFPv3-D16 FPU for ARM builds
Jani Monoses [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Use VFPv3-D16 FPU for ARM builds

Upstream-Bug: https://ghc.haskell.org/trac/ghc/ticket/5914

Jani writes: The D16 part was Debian/Ubuntu specific, IIRC we define hardfloat
in that particular variant (16 double registers) or we had a different naming
for some reason.

Gbp-Pq: Name ARM-VFPv3D16

12 months agoghc (9.6.6-4) unstable; urgency=medium
Gianfranco Costamagna [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
ghc (9.6.6-4) unstable; urgency=medium

  [ John Paul Adrian Glaubitz ]
  * Add patch to fix FTBFS on alpha (Closes#: 1086830)

  [ Gianfranco Costamagna ]
  * Add binutils-gold to armel and armhf, according to rules file
    (Closes: #1094995)

  [ 王鑫 <wangxin03@loongson.cn> ]
  * Update loongarch64 patch with new upstream backported commits
   (Closes: #1089921)

[dgit import unpatched ghc 9.6.6-4]

12 months agoImport ghc_9.6.6-4.debian.tar.xz
Gianfranco Costamagna [Mon, 17 Feb 2025 08:44:23 +0000 (09:44 +0100)]
Import ghc_9.6.6-4.debian.tar.xz

[dgit import tarball ghc 9.6.6-4 ghc_9.6.6-4.debian.tar.xz]

16 months agoMerge ghc (9.6.6-3) import into refs/heads/workingbranch
Gianfranco Costamagna [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Merge ghc (9.6.6-3) import into refs/heads/workingbranch

16 months ago[PATCH] Enable tables next to code for LoongArch64
lrzlin [Thu, 12 Jan 2023 16:56:37 +0000 (00:56 +0800)]
[PATCH] Enable tables next to code for LoongArch64

Gbp-Pq: Name 7e2d3eb507da184cf3337d36715fd82a81643d91.patch

16 months ago[PATCH] Cmm: don't perform unsound optimizations on 32-bit compiler hosts
Sylvain Henry [Thu, 1 Aug 2024 13:59:14 +0000 (15:59 +0200)]
[PATCH] Cmm: don't perform unsound optimizations on 32-bit compiler hosts

beef61351b240967b49169d27a9a19565cf3c4af enabled the use of
  MO_Add/MO_Sub for 64-bit operations in the C and LLVM backends
6755d833af8c21bbad6585144b10e20ac4a0a1ab did the same for the x86 NCG
  backend

However we store some literal values as `Int` in the compiler. As a
result, some Cmm optimizations transformed target 64-bit literals into
compiler `Int`. If the compiler is 32-bit, this leads to computing with
wrong literals (see #24893 and #24700).

This patch disables these Cmm optimizations for 32-bit compilers. This
is unsatisfying (optimizations shouldn't be compiler-word-size
dependent) but it fixes the bug and it makes the patch easy to backport.
A proper fix would be much more invasive but it shall be implemented in
the future.

Co-authored-by: amesgen <amesgen@amesgen.de>
Gbp-Pq: Name pr-13096

16 months agoAdd more hadrian bootstrap plans
Ilias Tsitsimpis [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Add more hadrian bootstrap plans

Hadrian only contains bootstrap plans for previous GHC versions. Add plans for
the current version as well, since we may want to bootstrap hadrian with a
cross-compiled GHC that is of the same version as the GHC we are building here.

Gbp-Pq: Name hadrian-plans

16 months ago[PATCH] Bump max LLVM version to 19 (not inclusive)
Olivier Benz [Sat, 25 May 2024 10:29:13 +0000 (12:29 +0200)]
[PATCH] Bump max LLVM version to 19 (not inclusive)

Gbp-Pq: Name llvm-newer-version

16 months agollvm-new-pass-manager
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
llvm-new-pass-manager

commit 77db84aba1ba00f6d146e9107b24c6203798e796
Author: Ben Gamari <bgamari.foss@gmail.com>
Date:   Wed Jan 31 08:58:58 2024 -0500

    llvmGen: Adapt to allow use of new pass manager.

    We now must use `-passes` in place of `-O<n>` due to #21936.

    Closes #21936.

Gbp-Pq: Name llvm-new-pass-manager

16 months ago[PATCH] Use capi for syscalls that break under musl's handling of 64-bit time_t
Marios Titas [Sun, 2 Oct 2022 20:12:43 +0000 (23:12 +0300)]
[PATCH] Use capi for syscalls that break under musl's handling of 64-bit time_t

Gbp-Pq: Name time_t-time

16 months agohurd-hadrian-supportrpaths
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
hurd-hadrian-supportrpaths

Can be dropped with 9.8.1
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-hadrian-supportrpaths

16 months agohurd-hadrian-osstring
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
hurd-hadrian-osstring

https://gitlab.haskell.org/ghc/ghc/-/merge_requests/11624
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-hadrian-osstring

16 months agohurd-getExecutablePath
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
hurd-getExecutablePath

Also applies in 9.6.x
Can be dropped with 9.8.1
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-getExecutablePath

16 months agohurd-cabal-supportrpaths
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
hurd-cabal-supportrpaths

https://github.com/haskell/cabal/pull/9441
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-cabal-supportrpaths

16 months agohurd-cabal-osstring
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
hurd-cabal-osstring

https://github.com/haskell/cabal/pull/9434
Debian-Bug: https://bugs.debian.org/1056305

Gbp-Pq: Name hurd-cabal-osstring

16 months agosparc64-cabal-support
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
sparc64-cabal-support

Debian-Bug: https://bugs.debian.org/1056033

Gbp-Pq: Name sparc64-cabal-support

16 months ago[PATCH] PPC NCG: Generate clear right insn at arch width
Peter Trommler [Tue, 7 Nov 2023 20:47:24 +0000 (21:47 +0100)]
[PATCH] PPC NCG: Generate clear right insn at arch width

The clear right immediate (clrrxi) is only available in word and
doubleword width. Generate clrrxi instructions at architecture
width for all MachOp widths.

Fixes #24145

Gbp-Pq: Name ppc64el-fix-clrri

16 months agouse-modern-atomics
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
use-modern-atomics

commit f8fa1d08d7cbfef508bab355bda80f495e928f98
Author: Ben Gamari <bgamari.foss@gmail.com>
Date:   Mon Apr 17 21:04:47 2023 +0000

    ghc-prim: Use C11 atomics

    Previously `ghc-prim`'s atomic wrappers used the legacy `__sync_*`
    family of C builtins. Here we refactor these to rather use the
    appropriate C11 atomic equivalents, allowing us to be more explicit
    about the expected ordering semantics.

Gbp-Pq: Name use-modern-atomics

16 months agoEnable GHCi on all platforms in Debian
Ilias Tsitsimpis [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Enable GHCi on all platforms in Debian

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/24098

Gbp-Pq: Name hadrian-enable-interpreter

16 months agohadrian-disable-threaded
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
hadrian-disable-threaded

===================================================================

Gbp-Pq: Name hadrian-disable-threaded

16 months agosparc-support
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
sparc-support

===================================================================

Gbp-Pq: Name sparc-support

16 months agoAllow setting path for LLC/OPT during configuration
Ilias Tsitsimpis [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Allow setting path for LLC/OPT during configuration

Patch configure.ac to allow us to modify the path for LLC/OPT during
configuration.

Gbp-Pq: Name allow-setting-llvm-program

16 months agoFix installation patch for iserv/unlit
Ilias Tsitsimpis [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Fix installation patch for iserv/unlit

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/22557
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/22697

Gbp-Pq: Name hadrian-iserv

16 months agoUse realpath instead of custom script
Ilias Tsitsimpis [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Use realpath instead of custom script

Use realpath instead of the custom script, which is broken. As an example,

  $ ./mk/relpath.sh /usr/lib/ghc/lib /usr/lib/ghc-doc
  ..-doc
  $ realpath --relative-to=/usr/lib/ghc/lib /usr/lib/ghc-doc
  ../../ghc-doc

Gbp-Pq: Name hadrian-relpath

16 months agoPass 'mathjax' to Haddock
Ilias Tsitsimpis [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Pass 'mathjax' to Haddock

Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/23625

Hadrian currently doesn't allow us to modify Haddock options, so
patch Hadrian to manually pass the 'mathjax' option.

Gbp-Pq: Name hadrian-haddock-opts

16 months agouse-unbundled-sphinx-rtd-theme
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
use-unbundled-sphinx-rtd-theme

===================================================================

Gbp-Pq: Name use-unbundled-sphinx-rtd-theme

16 months agoFix LLVM error on armel
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Fix LLVM error on armel

GHC 8.10 fails to build on armel with the following error:
   LLVM ERROR: unable to allocate function argument #8
   PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
   Stack dump:
   0.  Program arguments: llc-12 -O2 -enable-tbaa -relocation-model=pic -mcpu=arm7tdmi -mattr=+soft-float,-vfp2,-vfp2sp,-vfp3,-vfp3d16,-vfp3d16sp,-vfp3sp,-fp16,-vfp4,-vfp4d16,-vfp4d16sp,-vfp4sp,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fullfp16,-fp64,-d32,-neon,-crypto,-dotprod,-fp16fml,-bf16,-mve,-mve.fp,-fpregs,+strict-align /tmp/ghc5537_0/ghc_6.bc -o /tmp/ghc5537_0/ghc_7.lm_s
   1.  Running pass 'Function Pass Manager' on module '/tmp/ghc20177_0/ghc_6.bc'.
   2.  Running pass 'ARM Instruction Selection' on function '@"stg_gc_f1$def"'
   `llc-12' failed in phase `LLVM Compiler'. (Exit code: -6)
   make[3]: *** [rts/ghc.mk:325: rts/dist/build/HeapStackCheck.o] Error 1

 Surprisingly, reverting commit 4540bbe2811e860f35de6e67ab2f0040592fd3a5 fixes
 thie error.
Author: Ilias Tsitsimpis <iliastsi@debian.org>
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/20285

Gbp-Pq: Name fix-llvm-armel

16 months agoRemove hard-coded googleapis font URL
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Remove hard-coded googleapis font URL

Bug: https://github.com/haskell/haddock/issues/1211
Bug-Debian: https://bugs.debian.org/963690

Gbp-Pq: Name haddock-remove-googleapis-fonts

16 months agolocal-mathjax
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
local-mathjax

===================================================================

Gbp-Pq: Name local-mathjax

16 months agoAdd kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4
Svante Signell [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Add kfreebsdgnu to GHC_CONVERT_OS in aclocal.m4

Bug-Debian: https://bugs.debian.org/913140

Gbp-Pq: Name kfreebsd-aclocal.m4

16 months agoUse native x86_64 instructions on x32
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Use native x86_64 instructions on x32

This patch enables a few native 64-bit integer instructions
on x32 which are available on this architecture despite using
32-bit pointers. These instructions are present on x86_64 but
not on x86 and ghc checks the size of (void *) to determine
that. This method fails on x32 since despite using 32-bit
pointers and hence sizeof(void *) == 4, it still uses the
full x86_64 instruction set and software-emulated variants
of the aforementioned 64-bit integer instructions are
therefore not present in the toolchain which will make ghc
fail to build on x32.
See: https://ghc.haskell.org/trac/ghc/ticket/11571

Gbp-Pq: Name x32-use-native-x86_64-insn.patch

16 months agobuildpath-abi-stability
Debian Haskell Group [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
buildpath-abi-stability

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Forwarded to https://ghc.haskell.org/trac/ghc/ticket/10424

Gbp-Pq: Name buildpath-abi-stability.patch

16 months agoDo not emit a warning if the .haddock file is missing
Joachim Breitner [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Do not emit a warning if the .haddock file is missing

As it is quite common on Debian installations to install the -dev package
without the -doc package.

Gbp-Pq: Name no-missing-haddock-file-warning

16 months agoUse VFPv3-D16 FPU for ARM builds
Jani Monoses [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Use VFPv3-D16 FPU for ARM builds

Upstream-Bug: https://ghc.haskell.org/trac/ghc/ticket/5914

Jani writes: The D16 part was Debian/Ubuntu specific, IIRC we define hardfloat
in that particular variant (16 double registers) or we had a different naming
for some reason.

Gbp-Pq: Name ARM-VFPv3D16

16 months agoghc (9.6.6-3) unstable; urgency=medium
Gianfranco Costamagna [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
ghc (9.6.6-3) unstable; urgency=medium

  [ fanpeng <fanpeng@loongson.cn> ]
  * debian/patches/7e2d3eb507da184cf3337d36715fd82a81643d91.patch:
    - upstream fix for loong64 build failures (Closes: #1085966)

[dgit import unpatched ghc 9.6.6-3]

16 months agoImport ghc_9.6.6-3.debian.tar.xz
Gianfranco Costamagna [Tue, 5 Nov 2024 23:21:23 +0000 (00:21 +0100)]
Import ghc_9.6.6-3.debian.tar.xz

[dgit import tarball ghc 9.6.6-3 ghc_9.6.6-3.debian.tar.xz]

16 months agoupdate replace-dmb-instruction-with-coprocessor.patch archive/raspbian/9.6.6-2+rpi1 raspbian/9.6.6-2+rpi1
Peter Michael Green [Sat, 2 Nov 2024 08:00:41 +0000 (08:00 +0000)]
update replace-dmb-instruction-with-coprocessor.patch